(function (window){
    let data = "zhl"
    let i = "zzz"

    function foo(){
        console.log("foo()" + data);
    }

    window.module1 = {data,foo,i}
})(window)